package com.ktwlsoft.archivemanage.payload.instruction;

import com.ktwlsoft.archivemanage.domain.dao.entity.Instruction;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author JokerMo
 * @version 1.0
 * @date 2019/12/12 14:32
 */
@ApiModel("指南修改")
@Getter
@Setter
public class InstrctionUpdateRequest {

    /**指南id**/
    @ApiModelProperty("指南id")
    @NotNull(message = "指南id不能为空")
    private Long id;

    /**指南名称**/
    @ApiModelProperty("指南名称")
    @Size(max = 50, message = "指南名称超长")
    @NotNull(message = "指南名称不能为空")
    private String title;

    /**归属菜单id**/
    @ApiModelProperty("归属菜单id")
    private Long belongId;

    @ApiModelProperty("指南内容")
    @NotNull(message = "指南内容不能为空")
    private String content;

    /**业务来源**/
    @ApiModelProperty("业务来源(MANAGE(管理端), CUSTOM(用户端)")
    @NotNull(message = "业务来源不能为空")
    private Instruction.BusinessFrom businessFrom;

    /**标签**/
    @Size(max = 60, message = "标签名称超长")
    private String tag;

    @ApiModelProperty("是否上架")
    @NotNull(message = "上架状态不能为空")
    private Boolean up;
}
